package scjp.preparation.io;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.OutputStream;
import java.io.PrintStream;

public class FileOutputStreamTest {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		String errFile = "C:\\Dev\\Projects\\MyProjects\\yev-playground\\bin\\scjp\\preparation\\io\\log.txt";
		OutputStream os;
		try {
			os = new FileOutputStream(errFile);
			System.setErr(new PrintStream(os)); // SET SYSTEM.ERR
			System.err.println("Error");
		} catch (FileNotFoundException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		

	}

}
